<?php
require_once("../control/config.class.php");

$executar = new Conexao;

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<title>Untitled Document</title>
<style type="text/css">
.titulo_cad {	font-family: Verdana, Geneva, sans-serif;
	font-size: 16px;
	font-weight: bold;
	color: #666;
}
.texto {
	font-family: Verdana, Geneva, sans-serif;
	font-size: 12px;
	color: #000;
}
.texto_2 {	font-family: Verdana, Geneva, sans-serif;
	font-size: 13px;
}
</style>
</head>

<body>
<form id="form1" name="form1" enctype="multipart/form-data" method="post" action="../int/Importacao_int.php">
  <table width="700" border="0" align="left">
    <tr>
      <td height="10" class="titulo_cad"></td>
    </tr>
    <tr>
      <td align="left" class="titulo_cad">Importa&ccedil;&atilde;o de Arquivos - Sistema RM</td>
    </tr>
    <tr>
      <td align="left" >&nbsp;</td>
    </tr>
    <tr>
      <td align="left" class="texto" >Informe o arquivo a ser importado (Boletos Bancarios).</td>
    </tr>
    <tr>
      <td align="left" ><input size="80" name="arquivo_boletos" type="file" id="arquivo_boletos" style=" font-size:10pt; color: #333333; border: 1px solid #999; background-color: #FFFFFF; height: 20px; " /></td>
    </tr>
    <tr>
      <td height="15" align="right" ></td>
    </tr>
    <tr>
      <td align="right" ><span class="style7">
        <input type="submit" name="importar_boletos" id="importar_boletos" value="  Importar Boletos" style="background:#666; color:#FFFFFF; border:#000000" />
      </span></td>
    </tr>
    <tr>
      <td align="left" >&nbsp;</td>
    </tr>
    <tr>
      <td align="left" >&nbsp;</td>
    </tr>
    <tr>
      <td align="left" ><span class="titulo_cad">Importa&ccedil;&atilde;o de Arquivos - CNAB</span></td>
    </tr>
    <tr>
      <td align="left" ><table width="100%" border="0">
        <tr>
          <td colspan="2" align="left" class="texto_2">Informe o Arquivo de Boleto a ser importado.</td>
        </tr>
        <tr>
          <td colspan="2" align="left"><input size="80" name="arquivo_boletos_cnab" type="file" id="arquivo_boletos_cnab" style=" font-size:10pt; color: #333333; border: 1px solid #999; background-color: #FFFFFF; height: 20px; " /></td>
        </tr>
        <tr>
          <td height="10" class="texto_2">Filial</td>
          <td height="10"></td>
        </tr>
        <tr>
          <td height="10"><select name="unidade" id="unidade" style=" font-size:10pt; color: #333333; border: 1px solid #999; background-color: #FFFFFF; height: 24px; " />
            <?php
				
					
				  $sql="Select codigo,nome from unidades_educacionais order by codigo ";
				  $res=$executar->execSQL($sql);
				  if($res){
					  	while($dados=mysql_fetch_array($res)){
						 	echo "<option value='".$dados[0]."'>".$dados[1]."</option>"; 
					  	}

				  }
				  
				  ?>
            </select></td>
          <td height="10"></td>
        </tr>
        <tr>
          <td height="10" class="texto_2">Descri&ccedil;&atilde;o da Importa&ccedil;&atilde;o</td>
          <td height="10"></td>
        </tr>
        <tr>
          <td height="10"><input name="descricao" type="text" id="descricao" size="60" maxlength="45" /></td>
          <td height="10"></td>
        </tr>
        <tr>
          <td width="494" height="10"></td>
          <td width="163" height="10"></td>
        </tr>
      </table></td>
    </tr>
    <tr>
      <td align="right" ><span class="style7">
        <input type="submit" name="importar_boletos_cnab" id="importar_boletos_cnab" value="  Importar Boletos Cnab" style="background:#666; color:#FFFFFF; border:#000000" />
      </span></td>
    </tr>
    <tr>
      <td >&nbsp;</td>
    </tr>
  </table>
</form>
</body>
</html>